package com.example.certificate.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "修改状态")
public class UpdateStatusDTO {

    @ApiModelProperty(value = "修改状态的id")
    @NotBlank(message = "状态码id不能为空", groups = {statusGroup.class})
    private String id;

    @ApiModelProperty(value = "状态码")
    @NotNull(message = "状态码不能为空", groups = {statusGroup.class})
    private Integer status;

    public interface statusGroup{}
}

